package com.liuzhongni.wahahanews.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.liuzhongni.wahahanews.R;

/**
 * Created by dllo on 16/1/18.
 */
public class RetrievePassword extends AppCompatActivity implements View.OnClickListener {
    private LinearLayout linearLayout;
    private ImageView imageViewExit;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.myself_retrieve_password);
        imageViewExit = (ImageView) findViewById(R.id.myself_zhaohui_exit_iv);
        linearLayout = (LinearLayout) findViewById(R.id.myself_zhaohui_ll);
        linearLayout.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                linearLayout.setFocusable(true);
                linearLayout.setFocusableInTouchMode(true);
                linearLayout.requestFocus();
                return false;
            }
        });
        imageViewExit.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.myself_zhaohui_exit_iv:
                finish();
                break;
        }
    }
}
